package com.daniel.gof.proxy;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/5/15 10:26
 */
public class FoodServiceProxy implements IFoodService {
	private IFoodService service = new FoodServiceImpl();

	@Override
	public IFood makeChicken() {
		System.out.println("开始制作鸡肉");
		IFood food = service.makeChicken();
		System.out.println("鸡肉制作完成");
		return food;
	}

	@Override
	public IFood makeNoodle() {
		System.out.println("开始制作面条");
		IFood food = service.makeChicken();
		System.out.println("面条制作完成");
		return food;
	}
}
